﻿using System.Threading.Tasks;
using JoyfulHomeJourney.BackEnd.Infrastructure.Atrributes;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;

namespace JoyfulHomeJourney.BackEnd.Server.Interfaces
{
    [ProvideClassOrInterface]
    public interface ILoginServer
    {
        Task<ResponseApiDto> LoginAsync(RequestLoginDto dto,string role);
        SysAccounts CheckLogin(string aid, string code);
        Task<ResponseApiDto> Get_employ();
    }
}